-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(RHINENG-9249): create bifrost toggle #2176
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2176 +/- ##
==========================================
+ Coverage 57.26% 57.40% +0.14%
==========================================
Files 199 203 +4
Lines 6295 6323 +28
Branches 1764 1767 +3
==========================================
+ Hits 3605 3630 +25
- Misses 2690 2693 +3 ☔ View full report in Codecov by Sentry. |
/retest |
@computercamplove to your questions:
|
|
here clarification |
@mkholjuraev We'll need to handle errors. The api for checking for bootc returned a 500 and the page just loads and never errors |
@johnsonm325 it seems this continuous loading is because of this handler that only considers 403 errors. I think this was to solve some issues. @gkarat I am wondering if we can generalise that handler to other error types as well? |
@mkholjuraev, yeah, the 403 handler was introduced here #2138, you can also find some details why it was done. You can for sure extend this block and treat other codes if it's necessary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good enough to approve.
Just fix conflicts and address the small things I've pointed out.
src/routes/InventoryPage.js
Outdated
Inventory.defaultProps = { | ||
initialLoading: true, | ||
notificationProp: PropTypes.object, | ||
}; | ||
Inventory.propTypes = { | ||
isImmutableTabOpen: PropTypes.bool, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, will remove them
const isBifrostEnabled = useFeatureFlag('hbi.api.disable-xjoin'); | ||
const { hasBootcImages } = useContext(AccountStatContext); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth it to provide isBifrostEnabled
via the AccountStatContext as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The context is used to hold information about an account. I believe the flag would not be a proper thing to add.
🎉 This PR is included in version 1.68.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Resolves: https://issues.redhat.com/browse/RHINENG-9249
This creates a new toggle to switch between bootc table view and hybrid inventory tabs. This toggle should only be shown to accounts that has bootc images.
To test: